package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

import java.util.Objects;

/**
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/6/28 17:28
 * @since v1.0
 */
@Getter
public enum DelayCaseEnum {
    SELF("1", "enum.delayCase.name.self", "self"),


    CUSTOMER("2", "enum.delayCase.name.customer", "customer"),


    OTHER("3", "enum.delayCase.name.other", "other"),
    ;

    private String code;
    private String name;
    private String attr;

    DelayCaseEnum(String code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
